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:

.. code-block:: php

    public function isRequired(): bool;
