You are here

public function Nif::getFormElementClassDefinition in Field NIF 8

Get the Webform element's form element class definition.

We use the plugin's base id here to support plugin derivatives.

Return value

string A form element class definition.

Overrides WebformElementBase::getFormElementClassDefinition

File

src/Plugin/WebformElement/Nif.php, line 112

Class

Nif
Provides a 'field_nif' element.

Namespace

Drupal\field_nif\Plugin\WebformElement

Code

public function getFormElementClassDefinition() {
  $definition = $this->elementInfo
    ->getDefinition('nif');
  return $definition['class'];
}