isVersionableResourceType example

$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) {
    assert(is_string($bundle) && !empty($bundle), 'A bundle ID is required. Bundleless entity types should pass the entity type ID again.');
    if (empty($entity_type_id)) {
      
Home | Imprint | This part of the site doesn't use cookies.