Commit 059807a6 authored by e0ipso's avatar e0ipso
Browse files

wip: initial work to the new rewrite

parent 5d267e4d
namespace Drupal\typed_entity_example\EntityWrappers;
use Drupal\typed_entity\EntityWrappers\EntityWrapperInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
class Article implements EntityWrapperInterface {
* {@inheritdoc}
public static function create(ContainerInterface $container) {
return new static();
\ No newline at end of file
namespace Drupal\typed_entity_example\TypedRepositories;
use Drupal\typed_entity\TypedRepositories\TypedEntityRepositoryBase;
use Drupal\typed_entity\TypedRepositories\TypedEntityRepositoryInterface;
use Drupal\typed_entity_example\EntityWrappers\Article;
class ArticleRepository extends TypedEntityRepositoryBase {
protected static $wrapperClass = Article::class;
name: Typed Entity Example
description: An example implementation of the typed entity strategy.
type: module
- typed_entity
core: 8.x
parent: Drupal\typed_entity\TypedRepositories\TypedEntityRepositoryBase
name: typed_entity_repository
entity_type_id: node
bundle: article
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment