Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Searches for the link field to use, if present.
- */
- public function find_link_field() {
- foreach ($this->view->display_handler->getHandlers('field') as $id => $handler) {
- if($handler->fieldDefinition->type == 'link') { //-> protected properties!!
- return $id;
- break;
- }
- }
Add Comment
Please, Sign In to add comment