public function SchedulerPluginBase::publishAction in Scheduler 2.x
Get the publish action name of the entity type.
If no value is given in the plugin annotation then default to the commonly used {entity type id}_publish_action.
Return value
string The action name.
Overrides SchedulerPluginInterface::publishAction
File
- src/
SchedulerPluginBase.php, line 117
Class
- SchedulerPluginBase
- Base class for scheduler plugins.
Namespace
Drupal\schedulerCode
public function publishAction() {
return $this->pluginDefinition['publishAction'] ?? $this
->entityType() . '_publish_action';
}