Add and use a custom Node class

Add and use a custom `Node` class within the custom module, and move the
method there for finding the last event date for a talk node.
This commit is contained in:
Oliver Davies 2020-05-09 22:31:34 +01:00
parent 7e2bd98d93
commit 1a2372f611
4 changed files with 53 additions and 21 deletions

View file

@ -8,8 +8,8 @@ parameters:
- *TestBase.php
checkMissingIterableValueType: false
ignoreErrors:
- '#Call to an undefined method Drupal\\Core\\Entity\\EntityInterface::get()#'
- '#Call to an undefined method Drupal\\Core\\Entity\\EntityInterface::set()#'
- '#Call to an undefined method Drupal\\Core\\Field\\FieldItemListInterface::referencedEntities()#'
includes:
- vendor/mglaman/phpstan-drupal/extension.neon
- vendor/phpstan/phpstan-deprecation-rules/rules.neon