getAllFieldNames example


  protected function createResourceType(EntityTypeInterface $entity_type$bundle) {
    $type_name = NULL;
    $raw_fields = $this->getAllFieldNames($entity_type$bundle);
    $internalize_resource_type = $entity_type->isInternal();
    $fields = static::getFields($raw_fields$entity_type$bundle);
    if (!$internalize_resource_type) {
      $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(),
      
Home | Imprint | This part of the site doesn't use cookies.