You are here

protected function FormComponentBase::getEntityNamespace in Flexiform 8

Get the entity namespace from the component name.

2 calls to FormComponentBase::getEntityNamespace()
FieldWidgetComponent::getAdminLabel in src/Plugin/FormComponentType/FieldWidgetComponent.php
Get the admin label for the component.
FormComponentBase::getAdminLabel in src/FormComponent/FormComponentBase.php
Get the admin label for the component.

File

src/FormComponent/FormComponentBase.php, line 84

Class

FormComponentBase
Provides the base form component plugin.

Namespace

Drupal\flexiform\FormComponent

Code

protected function getEntityNamespace() {
  if (strpos($this->name, ':')) {
    list($namespace, $component_id) = explode(':', $this->name, 2);
    return $namespace;
  }
  return '';
}