public function LoginDestination::isDestinationCurrent in Login Destination 8
Same name and namespace in other branches
- 8.2 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 307
Class
- LoginDestination
- Defines a login destination configuration entity.
Namespace
Drupal\login_destination\EntityCode
public function isDestinationCurrent() {
return Unicode::strpos($this->destination_path, '<current>') !== FALSE;
}