You are here

public function OfficeHoursList::getInfo in Office Hours 8

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/OfficeHoursList.php, line 21

Class

OfficeHoursList
Provides a one-line text field form element for the List Widget.

Namespace

Drupal\office_hours\Element

Code

public function getInfo() {
  $info = [
    '#input' => TRUE,
    '#tree' => TRUE,
    '#process' => [
      [
        static::class,
        'processOfficeHoursSlot',
      ],
    ],
    '#element_validate' => [
      [
        static::class,
        'validateOfficeHoursSlot',
      ],
    ],
  ];
  return $info;
}