You are here

public function FieldInheritance::idWithoutTypeAndBundle in Field Inheritance 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/FieldInheritance.php \Drupal\field_inheritance\Entity\FieldInheritance::idWithoutTypeAndBundle()

Get the inheritance ID without the type and bundle.

Return value

string The inheritance ID without the type and bundle.

Overrides FieldInheritanceInterface::idWithoutTypeAndBundle

File

src/Entity/FieldInheritance.php, line 136

Class

FieldInheritance
Defines the Field inheritance entity.

Namespace

Drupal\field_inheritance\Entity

Code

public function idWithoutTypeAndBundle() {
  $prefix = $this
    ->destinationEntityType() . '_' . $this
    ->destinationEntityBundle() . '_';
  return str_replace($prefix, '', $this
    ->id());
}