stripAdminAndAnchorTagsFromResults example


    $this->view->displayHandlers->get($display_name)->setOption('entity_reference_options', $entity_reference_options);
    return TRUE;
  }

  /** * {@inheritdoc} */
  public function getReferenceableEntities($match = NULL, $match_operator = 'CONTAINS', $limit = 0) {
    $entities = [];
    if ($display_execution_results = $this->getDisplayExecutionResults($match$match_operator$limit)) {
      $entities = $this->stripAdminAndAnchorTagsFromResults($display_execution_results);
    }
    return $entities;
  }

  /** * Fetches the results of executing the display. * * @param string|null $match * (Optional) Text to match the label against. Defaults to NULL. * @param string $match_operator * (Optional) The operation the matching should be done with. Defaults * to "CONTAINS". * @param int $limit * Limit the query to a given number of items. Defaults to 0, which * indicates no limiting. * @param array|null $ids * Array of entity IDs. Defaults to NULL. * * @return array * The results. */
Home | Imprint | This part of the site doesn't use cookies.