You are here

public function LoginDestination::isDestinationCurrent in Login Destination 8.2

Same name and namespace in other branches
  1. 8 src/Entity/LoginDestination.php \Drupal\login_destination\Entity\LoginDestination::isDestinationCurrent()

Check is destination path links to a current page or not.

Return value

bool TRUE or FALSE.

1 call to LoginDestination::isDestinationCurrent()
LoginDestination::viewDestination in src/Entity/LoginDestination.php
Prepare redirect destination for displaying.

File

src/Entity/LoginDestination.php, line 321

Class

LoginDestination
Defines a login destination configuration entity.

Namespace

Drupal\login_destination\Entity

Code

public function isDestinationCurrent() {
  return mb_strpos($this->destination_path, '<current>') !== FALSE;
}