You are here

public function ViewsDuplicateBuilderBase::templateExists in Views Templates 8

Check if template exists.

Return value

bool Returns a boolean value.

Overrides ViewsBuilderBase::templateExists

File

src/Plugin/ViewsDuplicateBuilderBase.php, line 226

Class

ViewsDuplicateBuilderBase
ViewsDuplicateBuilderBase Class.

Namespace

Drupal\views_templates\Plugin

Code

public function templateExists() {
  return $this
    ->loadTemplate([]) ? TRUE : FALSE;
}