public function EntityExtraField::id in Entity Extra Field 8
Same name and namespace in other branches
- 2.0.x src/Entity/EntityExtraField.php \Drupal\entity_extra_field\Entity\EntityExtraField::id()
Gets the identifier.
Return value
string|int|null The entity identifier, or NULL if the object does not yet have an identifier.
Overrides EntityBase::id
1 call to EntityExtraField::id()
- EntityExtraField::urlRouteParameters in src/
Entity/ EntityExtraField.php - Gets an array of placeholders for this entity.
File
- src/
Entity/ EntityExtraField.php, line 105
Class
- EntityExtraField
- Define entity extra field.
Namespace
Drupal\entity_extra_field\EntityCode
public function id() {
if (empty($this->name) || empty($this->base_entity_type_id) || empty($this->base_bundle_type_id)) {
return NULL;
}
return "{$this->base_entity_type_id}.{$this->base_bundle_type_id}.{$this->name}";
}