MarkupQA class

Located in file /wire/core/MarkupQA.php

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the MarkupQA class also inherits all the methods and properties of: Wire.

Show class?             Show args?        

Common

NameReturnSummary 
MarkupQA::checkImgTags(string $value)
(nothing)Quality assurance for <img> tags 
MarkupQA::debug()
boolGet or set debug status 
MarkupQA::error(string $text)
$thisRecord error message to image-errors log 
MarkupQA::findLinks()
PageArray array intFind pages linking to another 
MarkupQA::ignorePaths()
arrayGet or set paths to ignore for link abstraction 
MarkupQA::setField(Field $field)
(nothing)Set the current Field 
MarkupQA::setPage(Page $page)
(nothing)Set the current Page 
MarkupQA::sleepLinks(string $value)
(nothing)Sleep href attributes, adding a data-pwid attribute to <a> tags that resolve to a Page 
MarkupQA::sleepUrls($value)
(nothing)Sleep URLs in href or src attributes for storage 
MarkupQA::verbose()
boolGet or set verbose state 
MarkupQA::wakeupLinks($value)
arrayWakeup href attributes, using the data-pwid attribute to update the href attribute as necessary 
MarkupQA::wakeupUrls($value)
(nothing)Wakeup URLs in href or src attributes for presentation 

Additional methods and properties

In addition to the methods and properties above, MarkupQA also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.236

Latest news

  • ProcessWire Weekly #547
    In the 547th issue of ProcessWire Weekly we're going to check out the latest core updates, introduce a couple of new modules, and more. Read on!
    Weekly.pw / 2 November 2024
  • Custom Fields Module
    This week we look at a new ProFields module named Custom Fields. This module provides a way to rapidly build out ProcessWire fields that contain any number of subfields/properties within them.
    Blog / 30 August 2024
  • Subscribe to weekly ProcessWire news

“To Drupal, or to ProcessWire? The million dollar choice. We decided to make an early switch to PW. And in retrospect, ProcessWire was probably the best decision we made. Thanks are due to ProcessWire and the amazing system and set of modules that are in place.” —Unni Krishnan, Founder of PigtailPundits