public function CMSContentSyncCommands::check_entity_flags in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/Commands/CMSContentSyncCommands.php \Drupal\cms_content_sync\Commands\CMSContentSyncCommands::check_entity_flags()
- 2.0.x src/Commands/CMSContentSyncCommands.php \Drupal\cms_content_sync\Commands\CMSContentSyncCommands::check_entity_flags()
Check the flags for an entity.
@command cms_content_sync:check-entity-flags
@aliases cscef
@options flag The flag to check for, allowed values are: FLAG_IS_SOURCE_ENTITY, FLAG_PUSH_ENABLED, FLAG_PUSHED_AS_DEPENDENCY, FLAG_EDIT_OVERRIDE, FLAG_USER_ENABLED_PUSH, FLAG_DELETED
@usage cms_content_sync:check-entity-flags 16cc0d54-d93d-45b8-adf2-071de9d2d32b Get all flags for the entity having the uuid = "16cc0d54-d93d-45b8-adf2-071de9d2d32b". @usage cms_content_sync:check-entity-flags 16cc0d54-d93d-45b8-adf2-071de9d2d32b --flag="FLAG_EDIT_OVERRIDE" Check if the entity having the uuid = "16cc0d54-d93d-45b8-adf2-071de9d2d32b" is overridden locally.
Parameters
string $entity_uuid: The entities uuid you would like to check for
array $options:
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
File
- src/
Commands/ CMSContentSyncCommands.php, line 231
Class
- CMSContentSyncCommands
- Content Sync Drush Commands.
Namespace
Drupal\cms_content_sync\CommandsCode
public function check_entity_flags($entity_uuid, $options = [
'flag' => InputOption::VALUE_OPTIONAL,
]) {
$this->cliService
->check_entity_flags($this
->io(), $entity_uuid, $options);
}