getDisplays example

return $this->entityTypeManager->getStorage($display_entity_type)->loadMultiple($load_ids);
  }

  /** * Returns form or view modes statuses for the bundle used by this form. * * @return array * An array of form or view mode statuses. */
  protected function getDisplayStatuses() {
    $display_statuses = [];
    $displays = $this->getDisplays();
    foreach ($displays as $display) {
      $display_statuses[$display->get('mode')] = $display->status();
    }
    return $display_statuses;
  }

  /** * Saves the updated display mode statuses. * * @param array $display_statuses * An array holding updated form or view mode statuses. */
Home | Imprint | This part of the site doesn't use cookies.