function AddFormBase::isAdvancedUi

Same name in other branches
  1. 9 core/modules/media_library/src/Form/AddFormBase.php \Drupal\media_library\Form\AddFormBase::isAdvancedUi()
  2. 10 core/modules/media_library/src/Form/AddFormBase.php \Drupal\media_library\Form\AddFormBase::isAdvancedUi()
  3. 11.x core/modules/media_library/src/Form/AddFormBase.php \Drupal\media_library\Form\AddFormBase::isAdvancedUi()

Determines if the "advanced UI" of the Media Library is enabled.

This exposes additional features that are useful to power users.

Return value

bool TRUE if the advanced UI is enabled, FALSE otherwise.

See also

::buildActions()

::buildCurrentSelectionArea()

2 calls to AddFormBase::isAdvancedUi()
AddFormBase::buildActions in core/modules/media_library/src/Form/AddFormBase.php
Returns an array of supported actions for the form.
AddFormBase::buildCurrentSelectionArea in core/modules/media_library/src/Form/AddFormBase.php
Returns a render array containing the current selection.

File

core/modules/media_library/src/Form/AddFormBase.php, line 859

Class

AddFormBase
Provides a base class for creating media items from within the media library.

Namespace

Drupal\media_library\Form

Code

protected function isAdvancedUi() {
    return (bool) $this->config('media_library.settings')
        ->get('advanced_ui');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.