function PathItem::preSave
Same name and namespace in other branches
- 8.9.x core/modules/path/src/Plugin/Field/FieldType/PathItem.php \Drupal\path\Plugin\Field\FieldType\PathItem::preSave()
- 10 core/modules/path/src/Plugin/Field/FieldType/PathItem.php \Drupal\path\Plugin\Field\FieldType\PathItem::preSave()
- 11.x core/modules/path/src/Plugin/Field/FieldType/PathItem.php \Drupal\path\Plugin\Field\FieldType\PathItem::preSave()
Overrides FieldItemBase::preSave
File
-
core/
modules/ path/ src/ Plugin/ Field/ FieldType/ PathItem.php, line 56
Class
- PathItem
- Defines the 'path' entity field type.
Namespace
Drupal\path\Plugin\Field\FieldTypeCode
public function preSave() {
if ($this->alias !== NULL) {
$this->alias = trim($this->alias);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.