You are here

public function SchedulerPluginBase::unpublishAction in Scheduler 2.x

Get the unpublish action name of the entity type.

If no value is given in the plugin annotation then default to the commonly used {entity type id}_unpublish_action.

Return value

string The action name.

Overrides SchedulerPluginInterface::unpublishAction

File

src/SchedulerPluginBase.php, line 130

Class

SchedulerPluginBase
Base class for scheduler plugins.

Namespace

Drupal\scheduler

Code

public function unpublishAction() {
  return $this->pluginDefinition['unpublishAction'] ?? $this
    ->entityType() . '_unpublish_action';
}