getAccessible example


  public function __construct($data$cardinality = -1) {
    assert(Inspector::assertAllObjects($data, ResourceObject::class, EntityAccessDeniedHttpException::class));
    parent::__construct($data$cardinality);
  }

  /** * {@inheritdoc} */
  public function getData() {
    return $this->getAccessible();
  }

  /** * Gets only data to be exposed. * * @return static */
  public function getAccessible() {
    $accessible_data = [];
    foreach ($this->data as $resource_object) {
      if (!$resource_object instanceof EntityAccessDeniedHttpException) {
        
Home | Imprint | This part of the site doesn't use cookies.