- Issue created by @coaston
- π©πͺGermany jurgenhaas Gottmadingen
The link to the MR in
entity_extra_field
is really helpful, thanks.There is a difference in handling, though. ECA's render view action just uses
views_embed_view
to receive a renderable array. But that doesn't allow testing for an empty result set in the view.We would have to re-implement
\Drupal\eca_render\Plugin\Action\Views::doBuild
entirely by using something like this:$view = Views::getView($view_name); $view->setDisplay($this->getViewDisplay()); $view->setArguments($this->getViewArguments($entity)); // Test for empty result set here. return $view->buildRenderable( $this->getViewDisplay(), $this->getViewArguments($entity)