You are here

public function ImageEffectsPxPerc::getInfo in Image Effects 8.2

Same name and namespace in other branches
  1. 8.3 src/Element/ImageEffectsPxPerc.php \Drupal\image_effects\Element\ImageEffectsPxPerc::getInfo()
  2. 8 src/Element/ImageEffectsPxPerc.php \Drupal\image_effects\Element\ImageEffectsPxPerc::getInfo()

Returns the element properties for this element.

Return value

array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.

Overrides ElementInterface::getInfo

File

src/Element/ImageEffectsPxPerc.php, line 18

Class

ImageEffectsPxPerc
Implements a form element for a quantity either in pixels or percentage.

Namespace

Drupal\image_effects\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#input' => TRUE,
    '#process' => [
      [
        $class,
        'processImageEffectsPxPerc',
      ],
    ],
    '#element_validate' => [
      [
        $class,
        'validateImageEffectsPxPerc',
      ],
    ],
  ];
}