You are here

public function PathUtilityBase::contains in Drupal 7 to 8/9 Module Upgrader 8

File

src/Utility/Path/PathUtilityBase.php, line 70

Class

PathUtilityBase
Base class for PathUtilityInterface implementations.

Namespace

Drupal\drupalmoduleupgrader\Utility\Path

Code

public function contains($element) {
  return (bool) $this
    ->find($element)
    ->count();
}