You are here

public function WebformElementInterface::getElementProperty in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElementInterface.php \Drupal\webform\Plugin\WebformElementInterface::getElementProperty()

Get an element's property value.

Parameters

array $element: An element.

string $property_name: An element's property name.

Return value

mixed An element's property value, default value, or NULL if property does not exist.

1 method overrides WebformElementInterface::getElementProperty()
WebformElementBase::getElementProperty in src/Plugin/WebformElementBase.php
Get an element's property value.

File

src/Plugin/WebformElementInterface.php, line 69

Class

WebformElementInterface
Defines the interface for webform elements.

Namespace

Drupal\webform\Plugin

Code

public function getElementProperty(array $element, $property_name);