isLocatableResourceType example

$event = ResourceTypeBuildEvent::createFromEntityTypeAndBundle($entity_type$bundle$fields);
      $this->eventDispatcher->dispatch($event, ResourceTypeBuildEvents::BUILD);
      $internalize_resource_type = $event->resourceTypeShouldBeDisabled();
      $fields = $event->getFields();
      $type_name = $event->getResourceTypeName();
    }
    return new ResourceType(
      $entity_type->id(),
      $bundle,
      $entity_type->getClass(),
      $internalize_resource_type,
      static::isLocatableResourceType($entity_type$bundle),
      static::isMutableResourceType($entity_type$bundle),
      static::isVersionableResourceType($entity_type),
      $fields,
      $type_name
    );
  }

  /** * {@inheritdoc} */
  public function get($entity_type_id$bundle) {
    
Home | Imprint | This part of the site doesn't use cookies.