Skip to content

Commit

Permalink
Fixed drush command
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Feb 28, 2025
1 parent 3b641b0 commit a3f4bde
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@
use Drupal\Component\Uuid\UuidInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\layout_builder\SectionComponent;
use Drush\Commands\AutowireTrait;
use Drush\Commands\DrushCommands;

/**
* A Drush commandfile.
*
* @codeCoverageIgnore
*/
class CawProfileHelperCommands extends DrushCommands {

use AutowireTrait;

/**
* Constructs a CawProfileHelperCommands object.
*/
Expand Down Expand Up @@ -84,7 +88,8 @@ public function commandName(string $field_name, string $label = '', $options = [

$section->insertAfterComponent($component->getUuid(), $new_component);
$view->save();
$this->logger()->info('Make sure to add the new field to the view.');
$this->logger()
->info('Make sure to add the new field to the view.');
return;
}
}
Expand Down

0 comments on commit a3f4bde

Please sign in to comment.