public function FieldableEntityInterface::onChange in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/FieldableEntityInterface.php \Drupal\Core\Entity\FieldableEntityInterface::onChange()
Reacts to changes to a field.
Note that this is invoked after any changes have been applied.
Parameters
string $field_name: The name of the field which is changed.
Throws
\InvalidArgumentException When trying to assign a value to the language field that matches an existing translation.
\LogicException When trying to change:
- The language of a translation.
- The value of the flag identifying the default translation object.
1 method overrides FieldableEntityInterface::onChange()
- ContentEntityBase::onChange in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Reacts to changes to a field.
File
- core/
lib/ Drupal/ Core/ Entity/ FieldableEntityInterface.php, line 215 - Contains \Drupal\Core\Entity\FieldableEntityInterface.
Class
- FieldableEntityInterface
- Interface for entities having fields.
Namespace
Drupal\Core\EntityCode
public function onChange($field_name);