You are here

public function WorkflowTransition::getFieldName in Workflow 8

Get the field_name for which the Transition is valid.

Return value

string The field_name, that is added to the Transition.

Overrides WorkflowTransitionInterface::getFieldName

3 calls to WorkflowTransition::getFieldName()
WorkflowScheduledTransition::save in src/Entity/WorkflowScheduledTransition.php
Saves a scheduled transition. If the transition is executed, save in history.
WorkflowTransition::execute in src/Entity/WorkflowTransition.php
Execute a transition (change state of an entity).
WorkflowTransition::_updateEntity in src/Entity/WorkflowTransition.php
Internal function to update the Entity.

File

src/Entity/WorkflowTransition.php, line 716

Class

WorkflowTransition
Implements an actual, executed, Transition.

Namespace

Drupal\workflow\Entity

Code

public function getFieldName() {
  return $this
    ->get('field_name')->value;
}