.. include:: /Includes.rst.txt

isRequired()
''''''''''''

Whether or not the element is required.
An element is required if the ``TYPO3\CMS\Extbase\Validation\Validator\NotEmptyValidator`` is attached to the element.

Signature::

   public function isRequired(): bool;
